/*
 * This file is part of GuitarMaster.
 * 
 * GuitarMaster is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * GuitarMaster is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with GuitarMaster.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.paris5.master2.guitarmaster.service;

/*
 * $Id: ServiceConvertorRemote.java 26 2013-04-05 04:09:09Z nedjahi.mourad@gmail.com $
 * 
 * $HeadURL: http://com-paris5-master2-guitarmaster-distrib.googlecode.com/svn/trunk/com.paris5.master2.guitarmaster.distrib/src/com/paris5/master2/guitarmaster/service/ServiceConvertorRemote.java $
 * $Revision: 26 $
 * $Date: 2013-04-05 04:09:09 +0000 (Fri, 05 Apr 2013) $
 * $Author: nedjahi.mourad@gmail.com $
 */
import com.paris5.master2.guitarmaster.exception.EcomException;
import javax.ejb.Remote;

/**
 * //TODO : Add desciption
 *
 * @author Leticia Mahamed, Alice Khammy, mourad nedjahi, Saliou Mamadou Barry
 */
@Remote
public interface ServiceConvertorRemote {
    
    /**
     * convert a value from a currency to another
     * @param value double 
     * @param from String value currency
     * @param to String currency to convert
     * @return double
     * @throws EcomException 
     */
    public double convert(double value, String from, String to) throws EcomException;
    
    /**
     * get convertion rate
     * @param from String value currency
     * @param to String currency to convert
     * @return double
     * @throws EcomException 
     */
    public double getRate(String from, String to) throws EcomException;
}
